<div id="wrapper">
<div id="page-wrapper">
<title>Add User - Western</title>
<?php $form=$this->form; ?>
<style>
fieldset.fifthy {	
	border-right: 0px;
	width: 100%;	
}
table.user td{
	vertical-align: top;
	padding-left: 5px;	   
}
</style>       
<script language="javascript">
      var temp=-1;
   
	function validateUser(field)
	{
		if(temp==1) return '* User name already exist!';
		else temp==-1;
	}
    function validatePassword(field)
	{
    	var com=$('#confirm_password').val();
    	var pwd=$('#password').val();
		if(com!=pwd) return '* Password mismatch!';		 
	}
</script>
<script type="text/javascript">
	jQuery(Document).ready(function(){
		//binds form submission and fields to the validation engine
		jQuery('#frm').validationEngine('attach', {promptPosition : "centerRight"});
		
	});
</script>
<?php 
	Application_Model_Decorator::removeAllDecorator($form);
	$cancel_url=$this->url(array('module'=>'foundation','controller'=>'user','action'=>'index',null	)); 	
	$tr = Application_Form_FrmLanguages::getCurrentlanguage();
?>
<br/>
<div class="view-table" >
	<div >
			<h2 style="color:red;"><?php echo $tr->translate("MENU_RSVACL_USER_ADD_USER");?></h2>	
	</div>
		<form id="frm" action="<?php echo $form->getAction(); ?>" method="post" enctype="multipart/form-data" >	
				<div class="btn" style="margin: 0 auto;width: 65%;">
					    <button type="submit" class="btn btn-small btn-primary" name="save">
					        <img src="<?php echo $this->baseUrl()?>/images/icon/apply2.png" alt=""/>
					        <?php echo $tr->translate('SAVE');?>
					    </button>
					    <a href="<?php echo $cancel_url; ?>" class="btn btn-small btn-primary">
					        <img src="<?php echo $this->baseUrl()?>/images/icon/cross.png" alt=""/>
					        <?php echo $tr->translate('CANCEL');?>
					    </a>
			   </div>
			   <div style="height: 20px;"></div>
					<table  border="0" cellpadding="5" width="50%" style="margin:0 auto;">
						<tr>
							<td><?php echo $tr->translate('GENDER_TITLE');?></td>
							<td><?php echo $form->getElement('title');?></td>
						</tr>
						<tr>
							<td><?php echo $tr->translate('FULL_NAME');?></td>
							<td><?php echo $form->getElement('fullname');?></td>
						</tr>
						<tr>
							<td><?php echo $tr->translate('USER_NAME');?></td>
							<td><?php echo $form->getElement('username');?></td>
						</tr>
						<tr>
							<td><?php echo $tr->translate('EMAIL');?></td>
							<td><?php echo $form->getElement('email');?></td>
						</tr>			
						<tr>
							<td><?php echo $tr->translate('PASSWORD');?></td>
							<td><?php echo $form->getElement('password');?></td>
						</tr>
						<tr>
							<td><?php echo $tr->translate('RE_PASSWORD');?></td>
							<td><?php echo $form->getElement('confirm_password');?></td>
						</tr>
						<tr>
							<td><?php echo $tr->translate('USER_TYPE');?></td>
							<td><?php echo $form->getElement('user_type_id');?></td>
						</tr>
						<tr>
							<td><?php echo "Phone Number" ?></td>
							<td><?php echo $form->getElement('phone');?></td>
						</tr>
						<tr>
							<td><?php echo "Photo User"?></td>
							<td><?php echo $form->getElement('photo');?></td>
						</tr>	
					</table>
					
			</form>	
	</div>
</div>
</div>